package com.ap.core.domain;

import org.hibernate.annotations.TypeDef;

import javax.persistence.AttributeOverride;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * User: Rohit.Dixit
 */
@Entity
@Table(name = "T_TRANSACTION_TYPE")
@AttributeOverride(name = "id",column = @Column(name = "TRANSACTION_TYPE"))
@TypeDef(name = "id",  typeClass = String.class)
public class TransactionType extends Identifiable<String>{

    private static final long serialVersionUID = 8339070221409552886L;

	@Column(name = "TRANSACTION_TYPE_NAME")
    private String transactionTypeName;

	
	
	@Column(name = "TRANSACTION_TYPE_DESCRIPTION")
    private String transactionTypeDescription;
	
   private TransactionType(){
	   
   }

    public String getTransactionTypeDescription() {
        return transactionTypeDescription;
    }

    public String getTransactionTypeName() {
        return transactionTypeName;
    }
}
